$def with(alarms)
<h3 class="page-title">超标参数设置</h3>
<div class="btn-toolbar">
    <a href="/alarms/new" class="btn btn-primary"><i class="icon-plus"></i> 新增参数</a>
</div>
<div class="">
    <table class="table table-striped table-bordered rounded-corner">
      <thead>
        <tr>
          <th>名称</th>
          <th>最大值</th>
          <th>启用/停用</th>
          <th style="width: 106px;"></th>
        </tr>
      </thead>
      <tbody>
      $for alarm in alarms:
	    <tr>
	        <td>$alarm.name</td>
	        <td>$alarm.max_value</td>
            <td>
            $if alarm.state:
                启用
            $else:
                停用
            </td>
	        <td>
              <a href="/alarms/$alarm.id/edit"><i class="icon-pencil"></i>编辑</a>
              <a href="/alarms/$alarm.id/delete" onClick="return confirm('确定删除?');"><i class="icon-remove"></i>删除</a>
          </td>
	    </tr>

      </tbody>
    </table>
</div>

